<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: C:/src/Qt/SARibbon/src/SARibbonBar/SARibbonGlobal.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.0.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_s_a_ribbon_global_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#enum-members">枚举</a>  </div>
  <div class="headertitle"><div class="title">SARibbonGlobal.h 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;memory&gt;</code><br />
<code>#include &lt;QtGlobal&gt;</code><br />
<code>#include &lt;QObject&gt;</code><br />
</div>
<p><a href="_s_a_ribbon_global_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aad5913c1b3e1c2eb72bbb400075ace58" id="r_aad5913c1b3e1c2eb72bbb400075ace58"><td class="memItemLeft" align="right" valign="top"><a id="aad5913c1b3e1c2eb72bbb400075ace58" name="aad5913c1b3e1c2eb72bbb400075ace58"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_RIBBON_BAR_VERSION_MAJ</b>&#160;&#160;&#160;2</td></tr>
<tr class="separator:aad5913c1b3e1c2eb72bbb400075ace58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae192bdc79251e5c5815cf7e5f41a9a5a" id="r_ae192bdc79251e5c5815cf7e5f41a9a5a"><td class="memItemLeft" align="right" valign="top"><a id="ae192bdc79251e5c5815cf7e5f41a9a5a" name="ae192bdc79251e5c5815cf7e5f41a9a5a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_RIBBON_BAR_VERSION_MIN</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ae192bdc79251e5c5815cf7e5f41a9a5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac079d1beec519e9c4aa2fd4f6df4188e" id="r_ac079d1beec519e9c4aa2fd4f6df4188e"><td class="memItemLeft" align="right" valign="top"><a id="ac079d1beec519e9c4aa2fd4f6df4188e" name="ac079d1beec519e9c4aa2fd4f6df4188e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_RIBBON_BAR_VERSION_PAT</b>&#160;&#160;&#160;2</td></tr>
<tr class="separator:ac079d1beec519e9c4aa2fd4f6df4188e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b135c4f7c9101b372f4d7c8b5c07fd1" id="r_a1b135c4f7c9101b372f4d7c8b5c07fd1"><td class="memItemLeft" align="right" valign="top"><a id="a1b135c4f7c9101b372f4d7c8b5c07fd1" name="a1b135c4f7c9101b372f4d7c8b5c07fd1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_RIBBON_EXPORT</b>&#160;&#160;&#160;Q_DECL_IMPORT</td></tr>
<tr class="separator:a1b135c4f7c9101b372f4d7c8b5c07fd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f4d8ce9b265027cc22873339cf1973e" id="r_a4f4d8ce9b265027cc22873339cf1973e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4f4d8ce9b265027cc22873339cf1973e">SA_RIBBON_DECLARE_PRIVATE</a>(classname)</td></tr>
<tr class="separator:a4f4d8ce9b265027cc22873339cf1973e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad5ac1c8be8d73814a633794342eb916" id="r_aad5ac1c8be8d73814a633794342eb916"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aad5ac1c8be8d73814a633794342eb916">SA_RIBBON_DECLARE_PUBLIC</a>(classname)</td></tr>
<tr class="separator:aad5ac1c8be8d73814a633794342eb916"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89a5f200fd8b01ab3f01cdaadc190a10" id="r_a89a5f200fd8b01ab3f01cdaadc190a10"><td class="memItemLeft" align="right" valign="top"><a id="a89a5f200fd8b01ab3f01cdaadc190a10" name="a89a5f200fd8b01ab3f01cdaadc190a10"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_RIBBON_BAR_PROP_CAN_CUSTOMIZE</b>&#160;&#160;&#160;&quot;_sa_isCanCustomize&quot;</td></tr>
<tr class="separator:a89a5f200fd8b01ab3f01cdaadc190a10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac79cc3613c0d6f995296c21a5b415ec4" id="r_ac79cc3613c0d6f995296c21a5b415ec4"><td class="memItemLeft" align="right" valign="top"><a id="ac79cc3613c0d6f995296c21a5b415ec4" name="ac79cc3613c0d6f995296c21a5b415ec4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_FONTMETRICS_WIDTH</b>(fm,  str)&#160;&#160;&#160;fm.horizontalAdvance(str)</td></tr>
<tr class="separator:ac79cc3613c0d6f995296c21a5b415ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62e8164eacf0777ff83a412b41c1c741" id="r_a62e8164eacf0777ff83a412b41c1c741"><td class="memItemLeft" align="right" valign="top"><a id="a62e8164eacf0777ff83a412b41c1c741" name="a62e8164eacf0777ff83a412b41c1c741"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_MOUSEEVENT_GLOBALPOS_POINT</b>(MouseEventPtr)&#160;&#160;&#160;MouseEventPtr-&gt;globalPosition().toPoint()</td></tr>
<tr class="separator:a62e8164eacf0777ff83a412b41c1c741"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e3692168d51cb1816e492b0141af6a3" id="r_a6e3692168d51cb1816e492b0141af6a3"><td class="memItemLeft" align="right" valign="top"><a id="a6e3692168d51cb1816e492b0141af6a3" name="a6e3692168d51cb1816e492b0141af6a3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_HOVEREVENT_POS_POINT</b>(HoverEventPtr)&#160;&#160;&#160;HoverEventPtr-&gt;position().toPoint()</td></tr>
<tr class="separator:a6e3692168d51cb1816e492b0141af6a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac10538f5944b456c784d4e2fec36e230" id="r_ac10538f5944b456c784d4e2fec36e230"><td class="memItemLeft" align="right" valign="top"><a id="ac10538f5944b456c784d4e2fec36e230" name="ac10538f5944b456c784d4e2fec36e230"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_DEBUG_PRINT_SIZE_HINT</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ac10538f5944b456c784d4e2fec36e230"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c3f060907d3fceb34a99b3337795c0" id="r_ae0c3f060907d3fceb34a99b3337795c0"><td class="memItemLeft" align="right" valign="top"><a id="ae0c3f060907d3fceb34a99b3337795c0" name="ae0c3f060907d3fceb34a99b3337795c0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_DEBUG_PRINT_EVENT</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ae0c3f060907d3fceb34a99b3337795c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a64c77307a0e32dd6101b47e6701e16" id="r_a4a64c77307a0e32dd6101b47e6701e16"><td class="memItemLeft" align="right" valign="top"><a id="a4a64c77307a0e32dd6101b47e6701e16" name="a4a64c77307a0e32dd6101b47e6701e16"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SA_DEBUG_PRINT_SARIBBONBAR</b>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a4a64c77307a0e32dd6101b47e6701e16"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:a535efba494c76deb79097ceab4e37abe" id="r_a535efba494c76deb79097ceab4e37abe"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a535efba494c76deb79097ceab4e37abe">SARibbonAlignment</a> { <a class="el" href="#a535efba494c76deb79097ceab4e37abea4fd5126bdd4f0f4416e2fb4c6f64d2be">AlignLeft</a>
, <a class="el" href="#a535efba494c76deb79097ceab4e37abea1c06010ee47dfd129e03e8427b089b86">AlignCenter</a>
 }</td></tr>
<tr class="memdesc:a535efba494c76deb79097ceab4e37abe"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义Ribbon的对其方式，目前支持左对齐和居中对其  <a href="#a535efba494c76deb79097ceab4e37abe">更多...</a><br /></td></tr>
<tr class="separator:a535efba494c76deb79097ceab4e37abe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a4f4d8ce9b265027cc22873339cf1973e" name="a4f4d8ce9b265027cc22873339cf1973e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f4d8ce9b265027cc22873339cf1973e">&#9670;&#160;</a></span>SA_RIBBON_DECLARE_PRIVATE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SA_RIBBON_DECLARE_PRIVATE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname">classname</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    <span class="keyword">class </span>PrivateData;                                                                                                 \</div>
<div class="line">    <span class="keyword">friend</span> <span class="keyword">class </span>classname::PrivateData;                                                                               \</div>
<div class="line">    std::unique_ptr&lt; PrivateData &gt; d_ptr;</div>
</div><!-- fragment -->
</div>
</div>
<a id="aad5ac1c8be8d73814a633794342eb916" name="aad5ac1c8be8d73814a633794342eb916"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad5ac1c8be8d73814a633794342eb916">&#9670;&#160;</a></span>SA_RIBBON_DECLARE_PUBLIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SA_RIBBON_DECLARE_PUBLIC</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname">classname</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    <span class="keyword">friend</span> <span class="keyword">class </span>classname;                                                                                            \</div>
<div class="line">    classname* q_ptr { <span class="keyword">nullptr</span> };                                                                                      \</div>
<div class="line">    PrivateData(<span class="keyword">const</span> PrivateData&amp;)            = <span class="keyword">delete</span>;                                                               \</div>
<div class="line">    PrivateData&amp; operator=(<span class="keyword">const</span> PrivateData&amp;) = <span class="keyword">delete</span>;</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">枚举类型说明</h2>
<a id="a535efba494c76deb79097ceab4e37abe" name="a535efba494c76deb79097ceab4e37abe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a535efba494c76deb79097ceab4e37abe">&#9670;&#160;</a></span>SARibbonAlignment</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="#a535efba494c76deb79097ceab4e37abe">SARibbonAlignment</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>定义Ribbon的对其方式，目前支持左对齐和居中对其 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a535efba494c76deb79097ceab4e37abea4fd5126bdd4f0f4416e2fb4c6f64d2be" name="a535efba494c76deb79097ceab4e37abea4fd5126bdd4f0f4416e2fb4c6f64d2be"></a>AlignLeft&#160;</td><td class="fielddoc"><p>左对齐，tab栏左对齐，同时category也是左对齐 </p>
</td></tr>
<tr><td class="fieldname"><a id="a535efba494c76deb79097ceab4e37abea1c06010ee47dfd129e03e8427b089b86" name="a535efba494c76deb79097ceab4e37abea1c06010ee47dfd129e03e8427b089b86"></a>AlignCenter&#160;</td><td class="fielddoc"><p>居中对其，tab栏居中对齐，同时category也是居中对齐 </p>
</td></tr>
</table>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e2d4cc23cf2ba44ad8b50ed52b6a09e1.html">SARibbonBar</a></li><li class="navelem"><a class="el" href="_s_a_ribbon_global_8h.html">SARibbonGlobal.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
